package com.zx.znav.mapper;

import com.zx.znav.bean.Link;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author lenovo
* @description 针对表【t_link】的数据库操作Mapper
* @createDate 2023-07-25 14:32:40
* @Entity com.zx.znav.bean.Link
*/
@Mapper
public interface LinkMapper extends BaseMapper<Link> {
    //加载一级导航下链接数  firstNavName, linkCnt
    @MapKey("name")
    List<Map<String, Integer>> groupByFirstNav();

    //viewCnt+1
    void incrViewCnt(Integer id);

}




